package com.talkyun.ocean.model;


public class Service {
    private String id;
    private String interfaceName;      // 接口名,     ex: com.fast.api.MemberService
    private String serviceMapping;     // URI映射,    ex: /crm/MemberService
    private Object serviceInstance;    // 服务实现    ex: com.fast.api.MemberServiceImpl
    private int serviceVersion = 1;    // 服务版本，   默认 1

    @Override
    public String toString() {
        return (serviceMapping == null ? "" : serviceMapping) + " " + interfaceName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getServiceMapping() {
        return serviceMapping;
    }

    public void setServiceMapping(String serviceMapping) {
        this.serviceMapping = serviceMapping;
    }

    public Object getServiceInstance() {
        return serviceInstance;
    }

    public void setServiceInstance(Object serviceInstance) {
        this.serviceInstance = serviceInstance;
    }

    public int getServiceVersion() {
        return serviceVersion;
    }

    public void setServiceVersion(int serviceVersion) {
        this.serviceVersion = serviceVersion;
    }
}